<?php 
	function display_user_menubar(){
		?>
		<div id="usermenubar">
			<ul id="useronglets">
				<li>
					<a href="#">info</a>
				</li>
				<li>
					<a href="#">projects</a>
				</li>
				<li>
					<a href="#">articles</a>
				</li>
				<li>
					<a href="#">events</a>
				</li>
				<li>
					<a href="#">note</a>
				</li>
				<li>
					<a href="#">email</a>
				</li>
				<li>
					<a href="#">save</a>
				</li>
			</ul>
		</div>
		<?php
	}

	function display_user_info(){
			echo $user->role;
	}
	
	if($_GET['user'] != 'new'){
		$user = User::get_user_by_id($_GET['user']);
		if(!$user){
			echo "<script><!--\n window.location.replace(\"".$_SERVER['PHP_SELF']."?page=Users\") \n//--></script>";	
			echo "<center style=\"margin-top:200px;\"><span class=\"error\">User does not exist</span></center>";
		}
	}
	
	display_user_menubar();
?>

<div id="usercontent">
	<?php 
		switch($_get['section']){
			case 'projects':
				break;
			case 'articles':
				break;
			case 'events':
				break;
			case 'note':
				break;
			default:
				display_user_info();
				break;
		}
	?>
</div>